summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-11-14 04:01:31 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-11-14 04:01:31 +0100
commit7c2b9d78f19d76ddea3309dcc7786857956f278d (patch)
treee6e6a600ec36aa6db55978be8ec65a24a8c65d92
parenta8d993180dc24ed40a47d377bd5510ff6264dd2a (diff)
downloadChimère - projet Saclay-7c2b9d78f19d76ddea3309dcc7786857956f278d.tar.bz2
Chimère - projet Saclay-7c2b9d78f19d76ddea3309dcc7786857956f278d.zip
Template: Add "..." to a shortified desc
-rw-r--r--templates/chimere/detail.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/chimere/detail.html b/templates/chimere/detail.html
index c101d9e..c6ea1b1 100644
--- a/templates/chimere/detail.html
+++ b/templates/chimere/detail.html
@@ -18,7 +18,7 @@
{% if marker.end_date %} - {{marker.end_date|date:"D d M Y"}}</p>{% endif %}</span>
{% endif %}
{% if marker.description %}
- <div class='description description_short' id='description_short_{{marker.pk}}'>{{ marker.short_desc|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}</div>
+ <div class='description description_short' id='description_short_{{marker.pk}}'>{{ marker.short_desc|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}{% if marker.description != marker.description_short%}...{%endif%}</div>
{% if marker.description != marker.description_short%}
<div id='description_long_{{marker.pk}}' class='description description_long'>{{ marker.description|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}</div>
{% endif %}